package com.cts.rt.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "PROJECT_REVENUE")
public class ProjectRevenue implements Serializable {

	private static final long serialVersionUID = -4236820203413207465L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	private Long id;

	@ManyToOne
	@JoinColumn(name = "PROJECT_ID")
	private Project project;

	@Temporal(TemporalType.DATE)
	@Column(name = "MONTH")
	private Date month;

	@Column(name = "FORECAST_REVENUE")
	private double forecastRevenue;

	@Column(name = "ACTUAL_REVENUE")
	private double actualRevenue;

	@Column(name = "PROFITABILITY")
	private Integer profitability;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public Date getMonth() {
		return month;
	}

	public void setMonth(Date month) {
		this.month = month;
	}

	public double getForecastRevenue() {
		return forecastRevenue;
	}

	public void setForecastRevenue(double forecastRevenue) {
		this.forecastRevenue = forecastRevenue;
	}

	public double getActualRevenue() {
		return actualRevenue;
	}

	public void setActualRevenue(double actualRevenue) {
		this.actualRevenue = actualRevenue;
	}

	public Integer getProfitability() {
		return profitability;
	}

	public void setProfitability(Integer profitability) {
		this.profitability = profitability;
	}

}
